
from django.conf.urls.defaults import patterns


urlpatterns =  patterns('comunidadcyt.Registration_Users.views',
                        (r'^$',                     'listar_usuarios'),
                        (r'^login/.*',               'login_view'),
                        (r'^register/$',            'register_view'),
                        (r'^profileSummary/(?P<user_id>\w+)/$','view_another_users_profile'),
                        (r'^profileSummary/$',      'view_profile_view'),
                        (r'^createProfile/$',      'create_profile'),
                        (r'^view/cv/(?P<user_id>\w+)/$','show_user_resume'),
                        (r'^editProfile/$',         'profile_edit_view'),
                        (r'^editNameMail/$',         'namemail_edit'),
                        (r'^login/(?P<key_xhr>\w+)/$','login_xhr_view'),
                        (r'^ajax/list/(?P<key_xhr>\w+)/$','ajax_list_users_view'),
                        (r'^listarpublicaciones/(?P<object_id>\d+)/$',  'listarpublicaciones'),
                        (r'^listarproyectos/(?P<object_id>\d+)/$',      'listarproyectos'),
                        (r'^listardeptos/(?P<object_id>\d+)/$',         'listardeptos'),
                        (r'^listargrupos/(?P<object_id>\d+)/$',         'listargrupos'),
                        (r'^listareventos/(?P<object_id>\d+)/$',        'listareventos'),

                        (r'^usertype/create/$',         'crear_tipo_usuario'),
                        (r'^usertype/assign/(?P<object_id>\d+)/$',         'asignar_tipos'),
                        (r'^usertype/show/(?P<object_id>\d+)/$',           'mostrar_tipos'),

                        (r'^cargos/assign/(?P<object_id>\d+)/$',         'asignar_cargos'),
                        (r'^cargos/show/(?P<object_id>\d+)/$',           'mostrar_cargos'),
                        (r'^cargos/remove/(?P<object_id>\d+)/$',              'remover_cargos'),

                        (r'^disableUser/(?P<object_id>\d+)/$',              'disable_user'),

                        (r'^registerUsertype/$',                             'register_usertype_view'),

                        (r'^listUserType/$',                                 'list_usertype_view'),

                        (r'^permission/show/(?P<object_id>\d+)/$',             'mostrar_permisos'),
                        (r'^permission/assign/(?P<object_id>\d+)/$',            'asignar_permisos'),
                        (r'^permission/remove/(?P<object_id>\d+)/$',              'remover_permisos'),

                        (r'^ajax/register/(?P<key_xhr>\w+)/$',           'ajax_add_permission_view'),

                        (r'^ajax/registercargos/(?P<key_xhr>\w+)/$',           'ajax_add_cargos_view'),


)
